import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString, Length } from 'class-validator';
export class SignInDto {
  @IsString()
  @IsNotEmpty()
  @ApiProperty({
    required: true,
    description: '姓名',
  })
  name: string;

  @IsString()
  @Length(6, 12)
  @IsNotEmpty()
  @ApiProperty({
    required: true,
    description: '密码',
  })
  password: string;
}
